/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package EDT.obj;

import java.util.Date;

/**
 *
 * @author ali
 */
public class Creneau {

    

    private int id;
    private int promotion;
    private int idSalle;
    private int idEc;
    private int idEns;
    private int idJour;
    private int hdebut;
    private int hfin;
    private int nGp;
    private String type;
    private String email;
    
    private String valide;
    
    private String visible;

    private Date date;
    private String ec;
    private String salle;
    private String enseignant;
    
    private String formation;
       

    public String getVisible() {
        return visible;
    }

    public void setVisible(String visible) {
        this.visible = visible;
    }
    
    
    public int getPromotion() {
        return promotion;
    }

    public void setPromotion(int promotion) {
        this.promotion = promotion;
    }

    public int getIdSalle() {
        return idSalle;
    }

    public void setIdSalle(int idSalle) {
        this.idSalle = idSalle;
    }

    public int getIdEns() {
        return idEns;
    }

    public void setIdEns(int idEns) {
        this.idEns = idEns;
    }
    
    public String getFormation() {
        return formation;
    }

    public void setFormation(String formation) {
        this.formation = formation;
    }

    public int getnGp() {
        return nGp;
    }

    public void setnGp(int nGp) {
        this.nGp = nGp;
    }

    public int getIdEc() {
        return idEc;
    }

    public void setIdEc(int idEc) {
        this.idEc = idEc;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
    
    

      
    public Creneau(int promotion, String ec, String salle, String enseignant, Date date, int hdebut, int hfin,String type,int idec,int ngp,int idcr,String form,int idEns, String mail) {
        this.promotion = promotion;
        this.ec = ec;
        this.salle = salle;
        this.enseignant = enseignant;
        this.date = date;
        this.hdebut = hdebut;
        this.hfin = hfin;
        this.type = type;
        this.idEc = idec;
        this.nGp = ngp;
        this.formation = form;
        this.idEns = idEns;
        this.id =idcr;
        this.email = mail;
    }
    
    public Creneau(int promotion, String ec, String salle, String enseignant, Date date, int hdebut, int hfin,String type,int idec,int ngp,int idcr,int ids ,String form, String mail) {
        this.promotion = promotion;
        this.ec = ec;
        this.salle = salle;
        this.enseignant = enseignant;
        this.date = date;
        this.hdebut = hdebut;
        this.hfin = hfin;
        this.type = type;
        this.idEc = idec;
        this.nGp = ngp;
        this.formation = form;
        this.idSalle = ids;
        this.id =idcr;
        this.email = mail;
    }
    
    public Creneau(int promotion, String ec, String salle, String enseignant, Date date, int hdebut, int hfin,String type,int idec,int ngp,int id, String form,String visible,String email) {
        this.promotion = promotion;
        this.ec = ec;
        this.salle = salle;
        this.enseignant = enseignant;
        this.date = date;
        this.hdebut = hdebut;
        this.hfin = hfin;
        this.type = type;
        this.idEc = idec;
        this.nGp = ngp;
        this.id = id;
        this.formation = form;
        this.visible = visible;
        this.email = email;
    }
   
    //Constructeur qui sert à faire une copie d'un n-uplet sauvegardé dans la table agenda
    public Creneau(int id, int promotion, int idSalle, int idEc, int idEns, int idJour, int hdebut, int hfin, int nGp, String type, String valide, String visible,Date ladate) {
        this.id = id;
        this.promotion = promotion;
        this.idSalle = idSalle;
        this.idEc = idEc;
        this.idEns = idEns;
        this.idJour = idJour;
        this.hdebut = hdebut;
        this.hfin = hfin;
        this.nGp = nGp;
        this.type = type;
        this.valide = valide;
        this.visible = visible;
        this.date = ladate;
    }
    
    public String getEc() {
        return ec;
    }

    public void setEc(String ec) {
        this.ec = ec;
    }

    public String getSalle() {
        return salle;
    }

    public void setSalle(String salle) {
        this.salle = salle;
    }

    public String getEnseignant() {
        return enseignant;
    }

    public void setEnseignant(String enseignant) {
        this.enseignant = enseignant;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public int getHdebut() {
        return hdebut;
    }

    public void setHdebut(int hdebut) {
        this.hdebut = hdebut;
    }

    public int getHfin() {
        return hfin;
    }

    public void setHfin(int hfin) {
        this.hfin = hfin;
    }
    
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIdJour() {
        return idJour;
    }

    public void setIdJour(int idJour) {
        this.idJour = idJour;
    }

    public String getValide() {
        return valide;
    }

    public void setValide(String valide) {
        this.valide = valide;
    }

}
